package com.mine.config;

import com.mine.pojo.MyBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBeanAutoConfiguration {
    //这个方法的返回值会被添加到IOC容器
    @Bean
    public MyBean myBean(){
        return new MyBean();
    }
}
